const flask = "http://10.161.35.224"    // api根路径
const spring =  "http://10.161.35.224:8110"

module.exports = {

  devServer: {
    proxy: {  //配置跨域
      '/flask': {
        target: flask,
        ws: true,
        changOrigin: true,  //允许跨域
        pathRewrite: {
          '^/flask': ''
        }
      },
      '/spring': {
        target: spring,
        ws: true,
        changOrigin: true,  //允许跨域
        pathRewrite: {
          '^/spring': ''
        }
      },
    }
  },
}